package com.weng.coder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.weng.framework.dao.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 代码模板实体Bean
 *
 * @作者 wengzhonghui
 * @创建时间 2018-02-26 09:57:12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("coder_template")
public class Template extends BaseEntity<Template> {

    @TableField(value="ID")
    private String id;//ID
    
    @TableField(value="CODE")
    private String code;//编码
    
    @TableField(value="NAME")
    private String name;//名称
    
    @TableField(value="STATUS")
    private Integer status;//状态
    
    @TableField(value="PROJECT_ID")
    private String projectId;//项目ID
    
    @TableField(value="REMARKS")
    private String remarks;//备注
    
    @TableField(value="CONTENT")
    private String content;//模板内容
    
    @TableField(value="PKG")
    private String pkg;//包路径
    
    @TableField(value="FILENAME")
    private String filename;//文件名定义
    
    @TableField(value="EXTENSION")
    private String extension;//文件名后缀
    
    @TableField(value="MODUAL_NAME")
    private String modualName;//所属模块，如base-web

		public Template() {
		}

		public Template(String id, String code, String name, Integer status, String projectId, String remarks, String content, String pkg, String filename, String extension, String modualName) {
			this.id = id;
			this.code = code;
			this.name = name;
			this.status = status;
			this.projectId = projectId;
			this.remarks = remarks;
			this.content = content;
			this.pkg = pkg;
			this.filename = filename;
			this.extension = extension;
			this.modualName = modualName;
		}
}
